<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<script>
	$(document).ready(function() {
		//聚焦第一个输入框
		$("#name").focus();
		//为inputForm注册validate函数
		$("#inputForm").validate({
			rules : {
				consumer : "required",
				department : "required",
				goods : "required",
				saleDate : "required",
				saleUser : "required",
				shop : "required",
				salePrice : "required",
				memo : "required"
			}
		});
	});
</script>
<form id="inputForm" class="well form-inline" action="${ctx}/adoms/shopSalesRecord/save" method="post">
	<input type="hidden" name="id" value="${shopSalesRecord.id}" />
	<table class="table table-striped table-bordered table-condensed">
		<thead>
			<i class="icon-flag"></i>
			<strong>销售记录表单</strong>
		</thead>
		<tr>
			<td class="span2">销售编号:</td>
			<td>
				<input id="code" name="code" type="text" value="${shopSalesRecord.code}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>消费者:</td>
			<td>
				<input id="consumer" name="consumer" type="text" value="${shopSalesRecord.consumer}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>所属部门:</td>
			<td>
				<input id="department" name="department" type="text" value="${shopSalesRecord.department}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>被销商品:</td>
			<td>
				<input id="goods" name="goods" type="text" value="${shopSalesRecord.goods}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>销售日期:</td>
			<td>
				<input datepicker id="saleDate" name="saleDate" type="text" value="${shopSalesRecord.saleDate}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>销售员:</td>
			<td>
				<input id="saleUser" name="saleUser" type="text" value="${shopSalesRecord.saleUser}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>销售店名:</td>
			<td>
				<input id="shop" name="shop" type="text" value="${shopSalesRecord.shop}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>销售金额:</td>
			<td>
				<input id="salePrice" name="salePrice" type="text" value="${shopSalesRecord.salePrice}" size="30" maxlength="80" />
			</td>
		</tr>
		<tr>
			<td>备注:</td>
			<td>
				<textarea id="memo" name="memo" rows="4" class="span6">${shopSalesRecord.memo}</textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input class="btn" type="submit" value="提交" />
				&nbsp;
				<input class="btn" type="button" value="返回" back="back" />
			</td>
		</tr>
	</table>
</form>
